<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css" />
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script>
        var id = getUrlParam("id");
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app1" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!--页面-->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%" />
            </div>
            <div class="table-content">
                <div class="item-body">
                                <h3 class="tit">{{order.setmeals.name}}</h3>
                            </label>
                        </div>
                <div class="item-content">
                    <p>体检人：{{order.name}}</p>
                    <p>体检日期：{{order.orderDate}}</p>
                </div>
            </div>
            <hr style="height: 4px" color="WhiteSmoke">
            <div class="table-listbox">
                <div class="box-title" >
                    <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                    <span>健康师建议及治疗方案</span>
                </div>
                <hr style="height: 4px" color="WhiteSmoke">
        <div class="box-table" >
            <div class="table-content">
                <ul class="table-list">
                    <li class="table-item">
                        <div class="item flex2"><h3><b>体检报告</b></h3></div>
                        <div class="item flex3">
                            <label >
                                1
                            </label>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="table-content">
                <ul class="table-list">
                    <li class="table-item">
                        <div class="item flex2"><h3><b>健康师意见：</b></h3></div>
                        <div class="item flex3">
                            <label >
                                1
                            </label>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="table-content">
                <ul class="table-list">
                    <li class="table-item" v-for="">
                        <div class="item flex2"><h3><b>建议药物：</b></h3></div>
                        <div class="item flex3">
                            <label v-for="">
                                伸腿瞪眼丸
                            </label>
                        </div>
                    </li>
                </ul>
            </div>
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item">
                            <div class="item flex2"><h3><b>建议运动：</b></h3></div>
                            <div class="item flex3">
                                <label v-for="exercises in order.exercisess">
                                    {{exercises.name}}<br/>
                                </label>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item" >
                            <div class="item flex2"><h3><b>建议膳食：</b></h3></div>
                            <div class="item flex3">
                                <label v-for="meals in order.mealss">
                                    {{meals.name}}<br/>
                                </label>
                            </div>
                        </li>
                    </ul>
                </div>
            <div class="box-button">
                <a @click="toOrderInfo()" class="order-btn">去点评一下吧</a>
            </div>
               </div>
            </div>
         </div>
       </div>
    </div>
</div>
    <script>
        var vue = new Vue({
            el:'#app1',
            data:{
                imgUrl:null,
                order:{}
            },
            mounted(){
                axios.post("/order/findByIdorder.do?id=" + id).then((response) => {
                    this.order = response.data.data;
                    this.imgUrl = 'http://qjn0embm5.hn-bkt.clouddn.com/' + this.order.setmeals.img;
                });
            }
        });
    </script>
</body>
</html>